﻿using System;


#if NET35

namespace Kernelx.Common.DataAnnotations
{

    /// <summary>
    /// 
    /// </summary>
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
    public class DatabaseGeneratedAttribute : Attribute
    {

        /// <summary>
        /// 
        /// </summary>
        public DatabaseGeneratedOption DatabaseGeneratedOption { get; private set; }


        /// <summary>
        /// 
        /// </summary>
        /// <param name="databaseGeneratedOption"></param>
        public DatabaseGeneratedAttribute(DatabaseGeneratedOption databaseGeneratedOption)
        {
            DatabaseGeneratedOption = databaseGeneratedOption;
        }
    }
}

#endif